import request from '@/utils/request'

// 查询列表
export function getVideoList(data) {
	return request({
		url: '/admin/dashboard/getVideoListByFuzz',
		method: 'post',
		data: data,
	})
}
// 查询视频
export function getVideo(data) {
	return request({
		url: '/admin/dashboard/getVideoByDeviceid',
		method: 'post',
		data: data,
	})
}
// 查询详情
export function getDetail(data) {
	return request({
		url: '/admin/dashboard/getVideoByOdsId',
		method: 'post',
		data: data,
	})
}

// 新增
export function add(data) {
	return request({
		url: '/admin/dashboard/addVideo',
		method: 'post',
		data: data,
	})
}

// 编辑
export function update(data) {
	return request({
		url: '/admin/dashboard/updateVideo',
		method: 'post',
		data: data,
	})
}